package com.yngrp.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.jeecgframework.core.common.entity.IdEntity;

/**
 *  @Description: 集团用户明细
 *  @author  SLH
 *  @date  20160812
 */
@Entity
@Table(name = "yl_task_group_detail")
public class TaskGroupDetail extends IdEntity implements java.io.Serializable{
    private static final long serialVersionUID = 1L;
	
	/**关联集团实体**/
	private GroupInfo groupInfo;
	
	/**关联电费查询任务实体**/
	private TaskElecQuery queryTask;
	
	/**总户数**/
	private Integer totalNum;
	
	/**集团欠费总额**/
	private Double totalAmount;

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "group_id")
	public GroupInfo getGroupInfo() {
		return groupInfo;
	}

	public void setGroupInfo(GroupInfo groupInfo) {
		this.groupInfo = groupInfo;
	}

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "task_id")
	public TaskElecQuery getQueryTask() {
		return queryTask;
	}

	public void setQueryTask(TaskElecQuery queryTask) {
		this.queryTask = queryTask;
	}

	@Column(name ="total_amount")
	public Double getTotalAmount() {
		return totalAmount;
	}
	
	public void setTotalAmount(Double totalAmount) {
		this.totalAmount = totalAmount;
	}

	@Column(name ="total_num")
	public Integer getTotalNum() {
		return totalNum;
	}

	public void setTotalNum(Integer totalNum) {
		this.totalNum = totalNum;
	}
	
}
